package 设计模式.装饰器模式.电商促销案例;

import 设计模式.装饰器模式.电商促销案例.Merchandise;

import java.math.BigDecimal;

/**
 * 详细订单
 * 详细订单中记录了商品信息
 *
 */
public class OrderDetail {
    private int id; // 详细订单 ID
    private int orderId;// 主订单 ID
    private Merchandise merchandise; // 商品详情
    private BigDecimal payMoney; // 支付单价

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public int getOrderId() {
        return orderId;
    }
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }
    public Merchandise getMerchandise() {
        return merchandise;
    }
    public void setMerchandise(Merchandise merchandise) {
        this.merchandise = merchandise;
    }
    public BigDecimal getPayMoney() {
        return payMoney;
    }
    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }
}
